<?php 
if (isset($_POST['BinhLuan']))
{
	include_once('connection.php');
	$MaSanPham = $_REQUEST['MaSP'];
	$NoiDung = $_POST['NoiDung'];
	$NgayBinhLuan = date('h:m:s-d/m/Y');
	$query="Insert into binhluan(MaSanPham, NoiDung, NgayBinhLuan)values('".$MaSanPham."','".$NoiDung."','".$NgayBinhLuan."')";
	$result=mysql_query($query);
	header('location:../MyModel/Chitiet.php?MSP='.$MaSanPham.'');
}
?>